package com.tjetc.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;


@TableName("t_tribe_message")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class TribeMessage implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    private String content;

    private Integer tribeId;

    private Integer userId;

    /**
     * 申请审核状态
     */
    private Integer state;

    @TableField(exist = false)
    private User user;

    @TableField(exist = false)
    private Tribe  tribe;




}
